/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.subrecord.entity;

import com.jeeplus.modules.subgoods.entity.SubGoods;
import com.jeeplus.modules.member.entity.Member;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;

/**
 * 认购记录Entity
 * @author w
 * @version 2021-03-26
 */
public class SubRecord extends DataEntity<SubRecord> {
	
	private static final long serialVersionUID = 1L;
	private SubGoods subGoods;		// 认购商品
	private String goodsName;		// 商品名称
	private Integer goodsNum;		// 认购数量
	private Double goodsPrice;		// 认购单价
	private Member member;		// 认购用户
	private String goodsId;
	private Double totalPrice;	//认购总价

	private String exportTime;//导出时间
	
	public SubRecord() {
		super();
	}

	public SubRecord(String id){
		super(id);
	}

	@ExcelField(title="认购商品", fieldType=SubGoods.class, value="subGoods.goodsName", align=2, sort=1)
	public SubGoods getSubGoods() {
		return subGoods;
	}

	public void setSubGoods(SubGoods subGoods) {
		this.subGoods = subGoods;
	}
	
	@ExcelField(title="商品名称", align=2, sort=2)
	public String getGoodsName() {
		return goodsName;
	}

	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}
	
	@ExcelField(title="认购数量", align=2, sort=3)
	public Integer getGoodsNum() {
		return goodsNum;
	}

	public void setGoodsNum(Integer goodsNum) {
		this.goodsNum = goodsNum;
	}
	
	@ExcelField(title="认购单价", align=2, sort=4)
	public Double getGoodsPrice() {
		return goodsPrice;
	}

	public void setGoodsPrice(Double goodsPrice) {
		this.goodsPrice = goodsPrice;
	}
	
	@ExcelField(title="认购用户", fieldType=Member.class, value="member.loginName", align=2, sort=5)
	public Member getMember() {
		return member;
	}

	public void setMember(Member member) {
		this.member = member;
	}

	public String getGoodsId() {
		return goodsId;
	}

	public void setGoodsId(String goodsId) {
		this.goodsId = goodsId;
	}

	public Double getTotalPrice() {
		return totalPrice;
	}

	public void setTotalPrice(Double totalPrice) {
		this.totalPrice = totalPrice;
	}

	@ExcelField(title="时间", align=2, sort=5)
	public String getExportTime() {
		return exportTime;
	}

	public void setExportTime(String exportTime) {
		this.exportTime = exportTime;
	}
}